package org.example.promax.dao;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.promax.entity.User;

//添加Mapper注解,让UerDao成为映射器接口
@Mapper
public interface UserDao {
    @Select("select * from user where username = #{username} ")
    User getUserByName(String username);


}
